<div id="messageList">
<h2>Inbox</h2>
<?php foreach($messages as $message) :?>
<div class="messageListMember">
    <a href="<?php echo $this->createUrl('message/view/' . $message->id);?>"><?php echo $message->subject;?></a><br /><br />
</div>
<?php endforeach;?>
</div>
<div id="composeNewMessage">
    <h2>Compose</h2>
    <form method="post" action="<?php echo $this->createUrl('message/compose');?>">
        <div class="dtable">
            <div class="drow">
                <span class="shead">
                    <label for="subject">Subjek</label>
                </span>
                <span>
                    <input type="text" id="subject" name="subject" />
                </span>
            </div>
            <div class="drow">
                <span class="shead">
                    <label for="body">Isi</label>
                </span>
                <span>
                    <textarea name="body" id="body" cols="40" rows="10"></textarea>
                </span>
            </div>
            <div class="drow">
                <span class="shead">
                    Partisipan
                </span>
                <span>
                    <?php foreach($this->auth->getFollowed() as $user) : ?>
                    <input type="checkbox" name="tags[<?php echo $user->id?>]" value="checked" /> <?php echo $user->getProfileLink();?><br />
                    <?php endforeach; ?>
                </span>
            </div>
            <div class="drow">
                <span class="shead">

                </span>
                <span>
                    <input type="submit" name="send" value="Kirim" />
                </span>
            </div>
        </div>
    </form>
</div>
<div class="dummy"></div>